#ifndef PILEPORT_H
#define PILEPORT_H

#include "entree.h"

// structures

typedef struct pileport_s pileport;

typedef struct entreePP_s{
	entree* e;
	struct entreePP_s* next;
}entreePP;

typedef struct portee_s {
    int level;
    entreePP* listEntries;
} portee;

struct pileport_s {
    portee* tete;
    pileport* next;
};



//fonctions

pileport* creerPilePortee();
pileport* addPortee(pileport* pp, int level);
int getMaxLevelPP(pileport* pp);
portee* creerPortee(int level);
entreePP* createEntryPP(entree* e);
pileport* addEntryToPP(pileport*pp, entree* e, int level);



// suppressions
pileport* popPortee(pileport* pp);
portee* supprimerPortee(portee* p);
entreePP* supprimerListEntries(entreePP* list);



#endif
